export default {
	/**
	 * @param {Number} type 格式化类型 1日期（精确到日） 2时间（精确到秒） 
	 */
	formatUvieDate(params, type = 2) {
		let year = params.year
		let month = params.month
		let day = params.day
		let hour = params.hour
		let minute = params.minute
		let second = params.second

		if (type == 1) return `${year}-${month}-${day}`
		if (type == 2) return `${year}-${month}-${day} ${hour}:${minute}:${second}`

	}
}
